# Example: Scaling an object's size

If the user selects the scaling option, objects will be scaled in size so that they occupy the same relative area on the new display, using this formula:

- New object width = (New display width/Old display width) x current object width
- New object height = (New display height/Old display height) x current object height

On a 640x480 display, a button is 20 pixels wide by 40 pixels high.

If the display is reduced to 320x240, the button will be scaled to be 10 pixels wide by 20 pixels high.

- New object width = (320/640) x 20 = 10
- New object height = (240/480) x 40 = 20

If the display is increased to 800x600, the button will be scaled to 25 x 50.

- New object width = (800/640) x 20 = 25
- New object height = (600/480) x 40 = 50

  Tip: | Imported text will not change font size.

## See also

Import a file

Select import options

Example: Scaling an object's position